package com.tianzmp.ttq.admin.exception;

import java.io.Serializable;

/**
 * @author zhumengping
 */

public enum ErrorEnum implements Serializable {



    /**admin平台*/
    ADMIN10000001(10000001,"data is empty"),
    ADMIN10000002(10000002,"operate failed"),
    ADMIN10000003(10000003,"admin platform exception"),

    /**mssp平台*/
    MSSP10000001(10000001,"未查询到数据"),
    MSSP10000002(10000002,"操作失败"),
    MSSP10000003(10000003,"MSSP运营管理平台异常"),
    MSSP19999999(19999999,"参数异常"),


    /**用户错误信息*/
    USER20000001(20000001,"user is lock"),
    USER20000002(20000002,"user register failed"),
    USER20000003(20000003,"user update failed"),
    USER20000004(20000004,"user does not exist"),
    USER20000005(20000005,"user does not have permission"),
    USER20000006(20000006,"user pass is error"),
    USER20000007(20000007,"the user exists"),
    USER20000008(20000008,"params is error")








    ;

    private int code;

    private String msg;

    ErrorEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
